﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="EIA.SLClient.Utility.DataPagerControl"
	d:DesignWidth="640" d:DesignHeight="30">
	<UserControl.Resources>
		<Style x:Key="bs_clear" TargetType="Button">
			<Setter Property="Background" Value="{x:Null}"/>
			<Setter Property="Foreground" Value="#FF000000"/>
			<Setter Property="BorderBrush">
				<Setter.Value>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FFA3AEB9" Offset="0"/>
						<GradientStop Color="#FF8399A9" Offset="0.375"/>
						<GradientStop Color="#FF718597" Offset="0.375"/>
						<GradientStop Color="#FF617584" Offset="1"/>
					</LinearGradientBrush>
				</Setter.Value>
			</Setter>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver"/>
									<VisualState x:Name="Pressed"/>
									<VisualState x:Name="Disabled"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Focused"/>
									<VisualState x:Name="Unfocused"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Border x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="#00000000">
								<Grid Background="{TemplateBinding Background}" Margin="0"/>
							</Border>
							<ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="BorderThickness" Value="0"/>
			<Setter Property="Padding" Value="0"/>
		</Style>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">
		<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
			<TextBlock TextWrapping="Wrap" Text="每页 " Margin="0"/>
			<TextBlock x:Name="txt_page_size" TextWrapping="Wrap" Text="1" Margin="0"/>
			<TextBlock TextWrapping="Wrap" Text=" 条" Margin="0"/>
			<TextBlock TextWrapping="Wrap" Text="当前第 " Margin="16,0,0,0"/>
			<TextBlock x:Name="txt_page_index" TextWrapping="Wrap" Text="1"/>
			<TextBlock TextWrapping="Wrap" Text="/"/>
			<TextBlock x:Name="txt_page_count" TextWrapping="Wrap" Text="10"/>
			<TextBlock TextWrapping="Wrap" Text=" 页"/>
			<Button x:Name="btn_page_first" Width="16" Style="{StaticResource bs_clear}" Margin="32,0,0,0" Click="btn_page_first_Click">
				<Grid Width="16" Height="16" d:IsLocked="True">
					<TextBlock TextWrapping="Wrap" Text="&lt;" d:LayoutOverrides="Width, Height"/>
					<TextBlock TextWrapping="Wrap" Text="&lt;" d:LayoutOverrides="Height" Margin="7,0,0,0"/>
				</Grid>
			</Button>
			<Button x:Name="btn_page_pre" Width="16" Style="{StaticResource bs_clear}" Content="&lt;" Click="btn_page_pre_Click"/>
			<StackPanel x:Name="cnt_pages" MinWidth="8" Orientation="Horizontal">
				<!--<Button x:Name="btn_page_0" Width="16" Style="{StaticResource bs_clear}" Content="0"/>
				<Button x:Name="btn_page_1" Width="16" Style="{StaticResource bs_clear}" Content="1"/>
				<Button x:Name="btn_page_2" Width="16" Style="{StaticResource bs_clear}" Content="2"/>
				<Button x:Name="btn_page_3" Width="16" Style="{StaticResource bs_clear}" Content="3"/>
				<Button x:Name="btn_page_4" Width="16" Style="{StaticResource bs_clear}" Content="4"/>
				<Button x:Name="btn_page_5" Width="16" Style="{StaticResource bs_clear}" Content="5"/>
				<Button x:Name="btn_page_6" Width="16" Style="{StaticResource bs_clear}" Content="6"/>
				<Button x:Name="btn_page_7" Width="16" Style="{StaticResource bs_clear}" Content="7"/>
				<Button x:Name="btn_page_8" Width="16" Style="{StaticResource bs_clear}" Content="8"/>
				<Button x:Name="btn_page_9" Width="16" Style="{StaticResource bs_clear}" Content="9"/>-->
			</StackPanel>
			<Button x:Name="btn_page_nxt" Width="16" Style="{StaticResource bs_clear}" Content="&gt;" Click="btn_page_nxt_Click"/>
			<Button x:Name="btn_page_last" Width="16" Style="{StaticResource bs_clear}" Click="btn_page_last_Click">
				<Grid Height="16" Width="16" d:IsLocked="True">
					<TextBlock TextWrapping="Wrap" Text="&gt;" d:LayoutOverrides="Width, Height"/>
					<TextBlock TextWrapping="Wrap" Text="&gt;" d:LayoutOverrides="Height" Margin="7,0,0,0"/>
					<Grid/>
				</Grid>
			</Button>
			<TextBlock TextWrapping="Wrap" Text="共 " d:LayoutOverrides="Height" Margin="16,0,0,0"/>
			<TextBlock x:Name="txt_total_count" TextWrapping="Wrap" Text="100"/>
			<TextBlock TextWrapping="Wrap" Text=" 条"/>
		</StackPanel>
	</Grid>
</UserControl>